package ve.lm.hrms_cy.Entity.Request;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class AnnouncementQueryRequest {

    private Integer current;     // 当前页
    private Integer size;        // 每页数量
    private Long id;             // 精确匹配ID
    private String startTime;    // 起始时间（格式：yyyy-MM-ddTHH:mm:ss）
    private String endTime;      // 截止时间
    private String status;

    @JsonCreator
    public AnnouncementQueryRequest(
            @JsonProperty("current") Integer current,
            @JsonProperty("size") Integer size,
            @JsonProperty("id") Long id,
            @JsonProperty("startTime") String startTime,
            @JsonProperty("endTime") String endTime,
            @JsonProperty("status") String status
    ) {
        this.current = current;
        this.size = size;
        this.id = id;
        this.startTime = startTime;
        this.endTime = endTime;
        this.status=status;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
